package c.x.jy.service.service;

import com.baomidou.mybatisplus.extension.service.IService;
import c.x.jy.common.utils.PageUtils;
import c.x.jy.dao.entity.SysRoleEntity;
import c.x.jy.dao.entity.SysUserEntity;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 角色
 *
 * @author amwhyh
 * @email xxx@xx.com
 * @date 2021-05-20 20:25:55
 */
public interface SysRoleService extends IService<SysRoleEntity> {

    PageUtils queryPage(Map<String, Object> params);
    /**
     * 查找角色
     * @param userId
     * @return
     */

    Set<String> selectRolesByUserId(Long userId);
    /**
     * 查找角色
     * @param user
     * @return
     */

    List<SysRoleEntity> selectRolesByUserId(SysUserEntity user);
}


